package com.example.gustavo.hello.model;

import java.util.Comparator;

/**
 * Created by gustavo on 2015/6/16.
 */
public class ParamObj implements Comparable<ParamObj>{

    public String name;
    public Object value;

    public ParamObj(String name, Object value) {
        this.name = name;
        this.value = value;
    }

    @Override
    public int compareTo(ParamObj another) {

        return name.compareTo(another.name);
    }

    @Override
    public String toString() {
        return "ParamObj{" +
                "name='" + name + '\'' +
                ", value=" + value +
                '}';
    }
}
